<style type="text/css">
	body, td {font-size: 12px;font-family: arial,helvetica,sans-serif;}
	.itemtbl {margin-top:20px;}
	.itemtbl tr td {padding: 10px;color: #333;}
	tr.itemheading td{border:1px solid #ccc;border-right:none;border-left:none;padding:5px 10px 5px 10px !important;color: #333333 !important;}
	.padtoptwty {padding-top:20px !important;}
	tr.last td {border-bottom:none;}
	tr.itemrepeat td {border-bottom:1px dashed #ccc;}
	.itemtbl {margin-top:20px;}
	.itemtbl tr td {padding: 10px;color: #333;}	
	.content {margin-top: 30px;color:#333 !important; }
	.mainheading{color:#333333;font-weight:bold;}
	.confirm {color: #4c8f3a;}
	.greeting {color:#333333 !important;font-weight:bold;}
	.status {font-size:14px;color:#C88039;font-weight:bold;text-decoration:none;}	
	.strong {font-weight: bold;}
	.valign {vertical-align: middle;}
	.purchasebox {width: 598px;}
	.purchasetitle {border-bottom:1px solid #ccc;padding:5px 0 5px 10px;}
	.purchaseboxmul {border:1px solid #ccc;margin:10px 0 10px 0;padding-bottom:10px;}
	.purchasetotal {border-top: 1px solid #ccc;border-bottom: 1px solid #ccc;}
	.purchasetotal {margin: 7px 0 20px 0;}
	.purchasetotal tr td{padding-bottom:20px;}
	.purchasetotalmul {border-top: 1px solid #ccc;width : 580px;}
	.purchasetotalmul img , .purchasetotal img {margin-top: 20px;}
	.purchasedetails tr td{color:#333;padding-top:15px;}
	.purchasedetailsmul tr td{color:#333;padding:20px 0 0 10px;}

	.headinfo {color:#333333;}
	
	hr {color: #dedede !important;height:1px;}
	.totaltbl {margin-top: 20px;}
	.totaltbl tr td {text-align:right;color: #333;padding:0 5px 0 0;width: 90px;}
	.totaltblmlt {margin: 10px 0 0 10px;}
	.totaltblmlt tr td {text-align:right;color: #333;width: 85px;}
	.totaltblmlt tr td.subhd , .totaltbl tr td.subhd {width: 390px;padding-right: 10px;text-align:right;}
	.clr {clear:both;}
	.airtbl {margin-top : 30px;width:320px;}
	.emphasis {color:#333333 !important;font-weight:bold;}
	.padleftten {padding-left: 10px;}
	.option {color: #aaaaaa;}
	.fmf {color:red;}
	.airtbl tr td{padding-right: 15px;color: #757575;padding-bottom: 5px;}
	.tblfooter {color: #757575;padding-left:10px;}
	.help{margin-right: 5px;vertical-align: middle;}
	.footercontainer{width:400px;}
	.exchange{width:100%;}
							      
	/*For 26568 spec */
	.headerDetails {color:#000000 !important;font-weight:bold;}
	.description {color:#333333;}
	.topBorder{border-top:1px solid #CCCCCC;}
	.bottomBorder{border-bottom:1px solid #CCCCCC;}
	.bottomMargin{margin:7px 0 20px;}
	.redFmf{color:#ff0000;}
	.padBottom {padding-bottom:20px !important;}
	.contentNew {color:#666666;}
	HR.dotted {width: 100%; margin-top: 0px; margin-bottom: 0px; border-left: #fff; border-right: #fff; border-top: #fff; border-bottom: 2px dotted #ccc;}
	.useNextBox {
		background:#FFFFFF url(http://www.paypal.com/en_US/i/scr/scr_table_bg_1x70.gif) repeat-x scroll left bottom;
		border:1px solid #CCCCCC;
		border-collapse:separate;
		padding:10px 10 20px 10px;
		width:530px;
		margin-left:20px;
		margin-top:20px;
		color:#333333;
		font-family:arial,helvetica,sans-serif;
		font-size:11px;
	}
	.boxHead{width:530px;padding-bottom:10px !important;border-bottom:1px solid #CCCCCC;text-align:left;}
	.boxHeadingTxt{font-size:12px;font-weight:bold;}
	.padBoxTop {padding-top:10px !important;}
	.SignupLink{color:#084482 !important;}
	
	.product-view-price { text-decoration: none; font-size: 15px; font-weight: bold; color: #ea0000 }
	.product-view-currency { color: #678db4} 
	.product-view-price-discount { text-decoration: line-through; }
	.color-white { color: #ffffff;}
	.total-cart { border-top: solid 2px #aaaaaa; }

</style>

<table align="center" border="0" cellpadding="0" cellspacing="0" width="800">
	<tr>
		<td>&nbsp;</td>
	</tr>
</table>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="800">
	<tr valign="top">
		<td width="100%">
			<table align="center" border="0" cellpadding="0" cellspacing="0" style="color:#333333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;" width="800">
				<tr valign="top">
					<td align="left">
						<h1 style="margin-top: 30px;color:#ff0000 !important;font-weight:bold;font-family: arial,helvetica,sans-serif;font-size:18px;">
							<?php echo __d('store','Welcome to ',true)?> <?php echo $_SERVER['HTTP_HOST']?>
						</h1>
					</td>
					<td align="right" valign="middle">
						<?php echo $this->element('store-email-menu',array('plugin'=>false))?>
						<br/>
						
					</td>
				</tr>
			</table>
			<div style="margin-top: 30px;color:#333 !important;font-family: arial,helvetica,sans-serif;font-size:12px;">
				<br/><br/>
				<div style="margin-top:5px;">
					<hr size="1"/>
				</div>
				<table align="left" border="0" cellpadding="0" cellspacing="0" style="color:#666666 !important;font-family: arial,helvetica,sans-serif;font-size:11px;" width="98%">
					<tr>
						<td align="left" style="padding-top:15px;" valign="top" width="50%">
							<span style="color:#333333;font-weight:bold;">
								<?php echo __d("store","Billing Address",true)?>
							</span>
							<br/><?php echo (!empty($customer['company']))? $customer['company'].'<br/>' : '';?>
							<?php echo (!empty($customer['name']) || !empty($customer['surname']))? $customer['name']." ".$customer['surname'].'<br/>' : '';?>
							<?php echo (!empty($customer['address1']))? $customer['address1'].'<br/>' : '';?>
							<?php echo (!empty($customer['address2']))? $customer['address2'].'<br/>' : '';?>
							<?php echo (!empty($customer['address3']))? $customer['address3'].'<br/>' : '';?>
							<?php echo (!empty($customer['address4']))? $customer['address4'].'<br/>' : '';?>
							<?php echo (!empty($customer['address5']))? $customer['address5'].'<br/>' : '';?>
							<?php echo $this->Session->read('Auth.User.email').'<br/>';?>
							<?php echo (!empty($customer['phone1']))? $customer['phone1'].'<br/>' : '';?>
							<?php echo (!empty($customer['phone2']))? $customer['phone2'].'<br/>' : '';?>
							<?php echo (!empty($customer['phone3']))? $customer['phone3'].'<br/>' : '';?>
							<?php echo (!empty($customer['phone4']))? $customer['phone4'].'<br/>' : '';?>
							<?php echo (!empty($customer['bank_account']))? __d("store","Bank Account: ").$customer['bank_account'] : '';?>
						</td>
						<?php if(!$customer['delivery_as_billing']){?>
						<td style="padding-top:15px;" valign="top">
							<span style="color:#333333;font-weight:bold;">
								<?php echo __d("store","Delivery Address",true)?>
							</span>
							<br/>
							<?php echo (!empty($customer['delivery_name']) || !empty($customer['delivery_surname']))? $customer['delivery_name']." ".$customer['delivery_surname'].'<br/>' : '';?>
							<?php echo (!empty($customer['delivery_address1']))? $customer['delivery_address1'].'<br/>' : '';?>
							<?php echo (!empty($customer['delivery_address2']))? $customer['delivery_address2'].'<br/>' : '';?>
							<?php echo (!empty($customer['delivery_address3']))? $customer['delivery_address3'].'<br/>' : '';?>
							<?php echo (!empty($customer['delivery_address4']))? $customer['delivery_address4'].'<br/>' : '';?>
							<?php echo (!empty($customer['delivery_address5']))? $customer['delivery_address5'].'<br/>' : '';?>
						</td>
						<?php }?>
					</tr>
					<tr>
						<td align="left" style="padding-top:15px;" valign="top" width="40%"/>
						<td style="padding-top:15px;" valign="top"/>
					</tr>
				</table>

			</div>
			<div style="margin-top:5px; clear: both;" >
				<hr size="1"/>
			</div> 				
			<span style="font-size:11px;color:#333;">
				Username/Email: <strong><?php echo $this->Session->read('Auth.User.email')?></strong><br/>
				Password: <strong><?php echo $gen_pass?></strong>			
			</span>
				
			<div style="margin-top:5px; clear: both;">
				<hr size="1"/>
			</div>
			<span class="xptFooter">
				<?php echo sprintf(__d('store','Copyright '.Date('Y').' %s. All rights reserved.', true),$_SERVER['HTTP_HOST'] )?><br/><br/>
				<?php echo $this->element('store-email-menu',array('plugin'=>false))?>
			</span>			
		</td>
	</tr>
</table>